-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Add the Frdm stbc agm01 9-axis sensor shield #31812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the Frdm stbc agm01 9-axis sensor shield #31812
Conversation
8eb1aa1 to
58a62c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can generalize this more and say it's compatible with any board that has an Arduino header
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you do this to make the fxos8700 sample use the shield instance? I think this might be better done as an application overlay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you do this to make the fxos8700 sample use the shield instance?
Yes, I did.
an application overlay
This is exactly what I was missing, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't figure out a way to apply the overlay only when both the frdm_stbc_agm01 and the frdm_k22f are selected. I removed this overlay though since the user could apply their own if they feel they need to.
58a62c6 to
0638648
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please capitalize the first word
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scan code check is failing because you need to add a copyright here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thank you. Not sure why I missed that.
The frdm_stbc_agm01 implements an fxos8700 and fxas21002 to provide a 9-axis sensor solution. Signed-off-by: Ryan Holleran <[email protected]>
Provide the arduino_i2c node name from i2c_0. Provide pinmux for frdm_stbc_agm01. The frdm_stbc_agm01 supplies access to an FXOS8700 and FXAS21002. when using frdm_stbc_agm01 with frdm_k22f, the FXAS21002 sample sensor project can be utilized and the FXOS8700 sample sensor project utilizes the shield's FXOS8700. Signed-off-by: Ryan Holleran <[email protected]>
0638648 to
c35775b
Compare
| | PORT_PCR_ODE_MASK); | ||
| #endif | ||
|
|
||
| #if CONFIG_SHIELD_FRDM_STBC_AGM01 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the correct way? I mean, adding a CONFIG option for a shield in the board part itself. I remember I had a similar request adding a shield for a microphone but I seem to remember I just added the pinmux part in the shield context itself. But I'm not able to recall it neither to find this out. @erwango, do you remember?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, when possible this should be avoided but this depends if platform has a more generic way to enable pins.
On that part I rely on @MaureenHelm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed it isn't ideal, but we don't have more generic way to configure pins on this SoC family yet.
No description provided.